<%@page contentType="text/plain" pageEncoding="UTF-8" import="com.mop.dinnerbook.dao.*,java.util.*,com.mop.dinnerbook.bean.*,java.net.*"%>
<%
	Manager manager = (Manager)session.getAttribute("manager");
        if(manager != null){
            String pname = request.getParameter("pname");
            request.setCharacterEncoding("UTF-8");
            pname = URLDecoder.decode(pname, "UTF-8");
            ManageDAO dao = new ManageDAO();
            boolean result = dao.addProject(pname);
            if(result == false){
                    out.write("增加失败，项目组名重复！");
            }else{
                    out.write("增加成功！");
            }
        }else{
            out.write("增加失败，权限不足！");
        }
%>
